import request from '@/utils/request'

// 查询图片保存列表
export function listPictureManage(query) {
  return request({
    url: '/system/pictureManage/list',
    method: 'get',
    params: query
  })
}

// 查询图片保存详细
export function getPictureManage(id) {
  return request({
    url: '/system/pictureManage/' + id,
    method: 'get'
  })
}

// 新增图片保存
export function addPictureManage(data) {
  return request({
    url: '/system/pictureManage',
    method: 'post',
    data: data
  })
}

// 修改图片保存
export function updatePictureManage(data) {
  return request({
    url: '/system/pictureManage',
    method: 'put',
    data: data
  })
}

// 删除图片保存
export function delPictureManage(id) {
  return request({
    url: '/system/pictureManage/' + id,
    method: 'delete'
  })
}

// 导出图片保存
export function exportPictureManage(query) {
  return request({
    url: '/system/pictureManage/export',
    method: 'get',
    params: query
  })
}


// 复制文件
export function copyFile(id) {
  return request({
    url: '/system/pictureManage/copyFile?id=' + id,
    method: 'post'
  })
}
